<template>
  <div class="my absolute my-bjt" >
    <div class="my-bjt-shell">
    <div class="my-main">
      <div class="main">
      <div class="header">
        <img src="http://diandian.zgkpz.com/images/m_my/touxiang.png" />
        <div class="title">
          <p>未登录</p>
          <p class="p_date">到期时间：2021.06.12</p>
        </div>
      </div>
      <div class="header-nav">
          <div class="header-nav-shell">
               <div class="header-nav-titles">
              <span class="header-nav-one"></span><span class="header-nav-title">点点教育带你畅学英语</span><span class="header-nav-one"></span>
            </div>
            <div class="header-nav-name">
              开通VIP会员，畅学全场
            </div>
            <img class="header-nav-img" src="../../assets/images/my-vip.png">
          </div>
        </div>
    <div class="menu-shell">
      <div class="menu-shell-bj">
          <div class="menu">
        <ul class="menu_list">
          <li class="menu_list-li">
           <div class="menu_list-li-di">
            <img src="../../assets/images/my-jb.png" />
            <span class="menu_list-name">我的金币</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
           </div>
          </li>
          <li class="menu_list-li">
             <div class="menu_list-li-di">
            <img src="http://diandian.zgkpz.com/images/m_my/shujuku.png" />
            <span class="menu_list-name">智能数据库</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
             </div>
          </li>
          <li class="menu_list-li">
             <div class="menu_list-li-di">
            <img
              src="http://diandian.zgkpz.com/images/m_my/jinbishangcheng.png"
            />
            <span class="menu_list-name">金币商城</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
             </div>
          </li >
          <li class="menu_list-li">
             <div class="menu_list-li-di">
            <img src="http://diandian.zgkpz.com/images/m_my/yaoqing.png" />
            <span class="menu_list-name">邀请有礼</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
             </div>
          </li>
          <li class="menu_list-li">
             <div class="menu_list-li-di">
            <img src="http://diandian.zgkpz.com/images/m_my/huiben.png" />
            <span class="menu_list-name">点点教育绘本馆</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
             </div>
          </li>
          <li class="menu_list-li">
             <div class="menu_list-li-di">
            <img src="http://diandian.zgkpz.com/images/m_my/ketang.png" />
            <span class="menu_list-name">点点教育智慧课堂</span>
            <img src="../../assets/images/my-right.png" class="menu_list-li-img">
             </div>
          </li>
        </ul>
      </div>
      </div>
    </div>
    <div class="anniu">
      <p>
        <img
          src="http://diandian.zgkpz.com/images/m_my/tuichu.png"
          @click="logout"
        />
      </p>
    </div>

    </div>
    </div>
    </div>

    <div class="menus">
        <div>
        <img
          src="http://diandian.zgkpz.com/images/m_index/rank.png"
          class="menu_img"
          @click="rank"
        />
      </div>
      <div>
        <img
          src="http://diandian.zgkpz.com/images/m_gold/huiben.png"
          class="menu_img"
          @click="huiben"
        />
      </div>
       <div>
        <img
          src="http://diandian.zgkpz.com/images/m_gold/read.png"
          class="menu_img"
          @click="read"
        />
      </div>
      <div>
        <img
          src="http://diandian.zgkpz.com/images/m_index/learn.png"
          class="menu_img"
          @click="log"
        />
      </div>
    </div>
  </div>
</template>

<script>
const NAME = "User";
export default {
  name: NAME,
  props: {},
  data: function () {
    return {
      userInfo: {},
    };
  },
  created() {
    window.addEventListener("resize", this.handleResize);
  },
  watch: {},
  mounted: function () {},
  methods: {
    handleResize() {
      if (document.body.clientWidth > 768) {
        this.$router.replace({ path: "/web/user" });
      }
    },
   
    read() {
      this.$router.replace({ path: "/" });
    },
     rank() {
      this.$router.replace({ path: "/rank" });
    },
    huiben() {
      this.$router.replace({ path: "/main" });
    },
    log() {
      this.$router.replace({ path: "/log" });
    },
    register() {
      this.$router.replace({ path: "/login" });
    },
    logout() {
      this.$router.replace({ path: "/" });
    },
  },
};
</script>

<style scoped>

.my-bjt{
  width: 100%;
  background: url(../../assets/images/my-bj.png)no-repeat;
  background-size: 100% 100%;
  font-family: SimHei;
  height: 100vh;
}

.my-main{
  width: 100%;
  background: url(../../assets/images/my-bj2.png)no-repeat;
  background-size: 100% 100%;
  position: relative;
  height: 11.211rem;
}

.my-bjt-shell{
  padding: 0px 0.292rem;
  padding-top: 0.126rem;
}

.main{
  position: absolute;
  width: 100%;
  top: 1.8rem;
  padding: 0px 0.516rem;
}

.header-nav-title{
  display: inline-block;
  color: #C0E372;
   padding: 0px 10px;
   font-size: 0.204rem;
}

.menu_list-li-img{
 position: absolute;
    top: 50%;
    right: 0px;
    transform: translate(-50%, -50%);
}

.menu_list-li-di{
  background: url(../../assets/images/my-bj5.png)no-repeat;
  background-size: 100% 100%;
  width: 100%;
    display: flex;
    align-items: center;
    padding: 0.038rem 0px;
        height: 0.688rem;
}

.menu_list-li{
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.1rem 0px;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

.header-nav-one{
  display: inline-block;
  width: 0.526rem;
    height: 2px;
    background-color: #C0E372;
}

.menu_list-name{
  font-weight: 300;
    font-size: 0.418rem;
    color: #fff;
}

.header-nav-titles{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.971rem;
    padding-top: 0.2rem;
}

.header-nav{
  padding-top: 0.292rem;
  position: relative;
}

.back {
  padding: 0.5rem;
}
.back img {
  width: 1rem;
}
.header {
  display: flex;
}

.header-nav-shell{
  background: url(../../assets/images/my-nav.png)no-repeat;
  width: 100%;
   background-size: 100% 100%;
    height: 1.139rem;
}

.menu-shell{
  padding-top: 0.311rem;
}
.header-nav-name{
   text-align: center;
    font-size: 0.360rem;
    padding-top: 0.165rem;
    color: #fff;
    margin-right: 0.971rem;
}

.header-nav-img{
    position: absolute;
    right: -0.263rem;
    top: -0.176rem;
    width: 1.57rem;
    height: 1.54rem;
}

.menu-shell-bj{
  background: url(../../assets/images/my-bj3.png)no-repeat;
  width: 100%;
   background-size: 100% 100%;
}

/* .main {
  margin-top: 30%;
} */
.header img {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}
.header p {
  color: #ffffff;
  font-size: 0.38rem;
}
.header .p_date {
  font-size: 0.2rem;
}
.header .title {
  height: 1rem;
  line-height: 0.5rem;
  padding-left: 0.4rem;
  margin-top: 0.09rem;
  line-height: 0.57rem;
}
/* .menu {
  margin-top: 0.75rem;
} */
.menu img {
  margin-right: 0.3rem;
  width: 0.5rem;
      margin-left: 0.2rem;
}
/* .menu ul {
  width: 100%;
}
.menu ul li {
  color: #ffffff;
  font-size: 0.4rem;
  font-weight: bold;
  height: 1rem;
  line-height: 1.3rem;
  display: flex;
  align-items: center;
} */


.menu_list-li:nth-child(1) .menu_list-li-di{
  margin-top: 0.08rem;
}

.menu_list-li:last-child .menu_list-li-di{
  margin-bottom: 0.08rem;
}

.menu .menu_list span{
  font-weight: 300;
} 

.anniu {
  width: 100%;
  text-align: center;
  padding-top: 0.1rem;
}
.anniu img {
  width: 3rem;
}
.menus {
  background: url("http://diandian.zgkpz.com/images/m_index/white.png")
    no-repeat;
  background-size: cover;
  width: 100%;
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
}
.menu_img {
  width: 1rem;
  height: 1rem;
  position: relative;
  bottom: 0;
}
@media screen and (min-height: 750px) {
  /* .main {
    margin-top: 38%;
  } */
  /* .menu {
    margin-top: 1.3rem;
  } */
  /* .menu ul li {
    height: 1.2rem;
    line-height: 1.2rem;
  } */
}
@media (min-height: 770px) and (min-height: 1024px) {
  .header img {
    width: 0.85rem;
    height: 0.85rem;
  }
  .header .title {
    font-size: 0.2rem;
  }
  .menu ul li {
    height: 0.75rem;
    line-height: 0.95rem;
    font-size: 0.3rem;
  }
  .menu {
    margin-top: 0.65rem;
  }
  .anniu img {
    width: 2rem;
  }
}




</style>
